package com.jx.springcloud.service;

import org.springframework.stereotype.Service;

@Service
public class PaymentService {

    public String paymentOK(){
      return "服务调用成功paymentOK  "+Thread.currentThread().getName();
    }

    public String paymentlayer() throws InterruptedException {
        int i = 3;
        Thread.sleep(i*1000);
        return "服务调用成功paymentlayer，耗时："+i+"秒, "+Thread.currentThread().getName();
    }
}
